const scssVariables = require('./src/theme/variables.scss.js');
module.exports = {
  lintOnSave: false,
  configureWebpack: {
    resolve: {
    },
  },
  css: {
    loaderOptions: {
      sass: {
        // @是src的别名
        additionalData: Object.keys(scssVariables)
          .map(k => `${k}: ${scssVariables[k]};`)
          .join('\n'),
      },
    },
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://pp-test.tlwok.com',
      },
    },
  },
};
